package com.hengtongxing.hejiayun.retorfit_manager;


import android.util.Log;

import androidx.annotation.NonNull;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;


/**
 *
 */

public class HttpHeaderInterceptor implements Interceptor {
    @Override
    public Response intercept(@NonNull Chain chain) throws IOException {
//        String token = SPManager.getInstance().getToken();
        Request request = chain.request()//
                .newBuilder()//
//                .addHeader("Authorization", "Bearer " + token)//
                .build();

        Log.i("url=", request.url().toString());

        return chain.proceed(request);
    }
}
